package SpringBoot.__template.full.config.startup;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.titan.core.utils.io.ConsoleUtils;

@WebServlet
public class HttpServletStartup extends HttpServlet {
    private final static Logger log = LoggerFactory.getLogger(HttpServletStartup.class);
    private static final long serialVersionUID = 1L;

    @Override
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        ConsoleUtils.method(HttpServletStartup.class, "doGet");
        response.getWriter().print("hello word");
        response.getWriter().flush();
        response.getWriter().close();
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        this.doGet(request, response);
    }
}
